{{ if (.Params.toc | default true ) }}
<div class="toc">
	<aside>
		<header>
			<strong>文档目录</strong>
		</header>
		{{ $emtLiPtrn := "(?s)<ul>\\s<li>\\s<ul>(.*)</li>\\s</ul>" }}
		{{ $rplcEmtLi := "<ul>$1" }}
			{{ .TableOfContents | replaceRE $emtLiPtrn $rplcEmtLi | safeHTML }}
	</aside>
</div>

{{ end }}
